package com.etc.service.impl;

import java.util.List;

import com.etc.entity.AsFollowuser;
import com.etc.mapper.AsFollowuserMapper;
import com.etc.service.IAsFollowuserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


/**
 * 用户关注表Service业务层处理
 * 
 * @author ruoyi
 * @date 2022-11-27
 */
@Service
public class AsFollowuserServiceImpl implements IAsFollowuserService
{
    @Autowired
    private AsFollowuserMapper asFollowuserMapper;

    /**
     * 查询用户关注表
     * 
     * @param id 用户关注表主键
     * @return 用户关注表
     */
    @Override
    public AsFollowuser selectAsFollowuserById(Long id)
    {
        return asFollowuserMapper.selectAsFollowuserById(id);
    }

    /**
     * 查询用户关注表列表
     * 
     * @param asFollowuser 用户关注表
     * @return 用户关注表
     */
    @Override
    public List<AsFollowuser> selectAsFollowuserList(AsFollowuser asFollowuser)
    {
        return asFollowuserMapper.selectAsFollowuserList(asFollowuser);
    }

    /**
     * 新增用户关注表
     * 
     * @param asFollowuser 用户关注表
     * @return 结果
     */
    @Override
    public int insertAsFollowuser(AsFollowuser asFollowuser)
    {
        return asFollowuserMapper.insertAsFollowuser(asFollowuser);
    }

    /**
     * 修改用户关注表
     * 
     * @param asFollowuser 用户关注表
     * @return 结果
     */
    @Override
    public int updateAsFollowuser(AsFollowuser asFollowuser)
    {
        return asFollowuserMapper.updateAsFollowuser(asFollowuser);
    }

    /**
     * 批量删除用户关注表
     * 
     * @param ids 需要删除的用户关注表主键
     * @return 结果
     */
    @Override
    public int deleteAsFollowuserByIds(Long[] ids)
    {
        return asFollowuserMapper.deleteAsFollowuserByIds(ids);
    }

    /**
     * 删除用户关注表信息
     * 
     * @param id 用户关注表主键
     * @return 结果
     */
    @Override
    public int deleteAsFollowuserById(Long id)
    {
        return asFollowuserMapper.deleteAsFollowuserById(id);
    }
}
